<?php
namespace app\manage\model;
use think\Model;
use think\Db;
class Record extends Model
{
    /*
     * 表连接 agency-record
     */
    protected $resultSetType = 'collection';
    function agrecord(){

        $db = Db::name('record')
            ->join('agency','agency.id = agencyid')
            ->field('agency.shop,agency.id as rid ,agencyid ,times, way ,money')
            ->select();
        return $db;
    }
   
}